<div class="layui-form-item" id="{{ $field }}_item"
     {{ isset($parents) && is_array($parents) ? "item-dynamic" : "" }}
     data-field="{{ $field }}"
     data-level="{{ isset($parents) && is_array($parents) ? count($parents) + 1 : 1 }}">
    <label class="layui-form-label">{{ $title }}</label>
    <div class="layui-input-inline"
         style="{{ isset($width) ? "width:{$width}" : ""  }}">
        <input type="text" name="{{ $field }}" id="{{ $field }}"
               lay-verify="required"
               class="layui-input layui-video-input"
               style="{{ isset($width) ? "width:{$width}px" : "width:191px;"  }}">
        <input type="hidden" name="{{ $cover_field }}"
               id="{{ $cover_field }}">
    </div>
    <div class="layui-upload">
        <button type="button" class="layui-btn up-video"
                lay-data="{url: '/admin/upVideo'}"
                data-video-field="{{ $field }}"
                data-cover-field="{{ $cover_field }}"
                data-max-size="{{ $max_size ?? 0 }}"
        >上传视频
        </button>
        <div class="layui-upload-list">
            <label class="layui-form-label"></label>
            @if(isset($cover_url) && $cover_url)
                <img class="layui-upload-img upimage-preview"
                     src="{{ $cover_url }}">
            @else
                <img class="layui-upload-img upimage-preview">
            @endif
            <p class="upimage-preview-text"></p>
        </div>
    </div>
    @if(isset($desc) && $desc)<div class="layui-form-mid layui-word-aux" style="left: 130px;{{ $desc_style ?? "" }}">{!! $desc ?? "" !!}</div>@endif
</div>
